#include"DrvGPIO.h"
#include"DrvSYS.h"
#define GPIOPORT  E_GPA
#define GPIOPIN 10


void BlinkExp() 
{
    unsigned long uli;

    SYSCLK->PWRCON.XTL12M_EN = 1;
    
    //
    // Sets PA10 as output mode.
    // 
    DrvGPIO_Open(GPIOPORT, GPIOPIN, E_IO_OUTPUT);

    while(1) 
    {
        //
        // Delay some time.
        //  
        for(uli = 0; uli < 0x1FFFF; uli ++) 
        
        //
        // Output high level.
        //  
        DrvGPIO_SetBit(GPIOPORT, GPIOPIN);
        
        //
        // Delay some time. 
        //
        for(uli = 0; uli < 0x1FFFF; uli ++)

        //  
        // Output low level.
        //  
        DrvGPIO_ClrBit(GPIOPORT, GPIOPIN);	
     }
}